* fns.c (next_almost_prime): Don't return a multiple of 3 or 5.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 14 Jun 2011 20:57:33 +0000 (13:57 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 14 Jun 2011 20:57:33 +0000 (13:57 -0700)
commit7b317fe6ce480992064192d3b05600ef950c54d7
treeb0a3c999f1c3519d651c21d8d36bc11a127acb6a
parent503cb5d33eebe342ef5b42d42c9afb2523d1f78b
* fns.c (next_almost_prime): Don't return a multiple of 3 or 5.

The previous code was bogus.  For example, next_almost_prime (32)
returned 39, which is undesirable as it is a multiple of 3; and
next_almost_prime (24) returned 25, which is a multiple of 5 so
why was the code bothering to check for multiples of 7?
src/ChangeLog
src/fns.c